package com.uuah.server.config.registry;

import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.uuah.server.api.config.registry.IRegistry;

/**
 *
 * TODO comment ...
 *
 * <p>
 * update record:updator，update time，update content and version
 * </p>
 *
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 上午10:02:43
 * @version 1.0.0
 */
public class RegistryBroker extends AbstractRegistryBroker {
	private Map registries = new ConcurrentHashMap();

	public void addRegistry(long id, IRegistry registry) {
		registries.put(new Long(id), registry);
	}

	public void removeRegistry(long id) {
		registries.remove(new Long(id));
	}

	protected Collection<IRegistry> getRegistries() {
		return registries.values();
	}
}
